<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>

  export default {
    name: 'App',
    methods: {},
    mounted() {
      this.$nextTick(() => {
        if (localStorage.getItem("setUserId") == null || localStorage.getItem("setUserId") == "") {
          this.$router.push({name: "login"})
        }
      })
    }
  }
</script>

<style lang="less">
  .size {
    width: 100%;
    height: 100%;
  }

  html, body {
    .size;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  #app {
    .size;
  }
</style>
